Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 19 - Error Manager / Error Manager Reference
Application-Defined Routines /


TQ3WarningMethod

You can define a function to handle warnings that occur during the execution of QuickDraw 3D routines.

typedef void (*TQ3WarningMethod) (
TQ3Warning firstWarning, 
TQ3Warning lastWarning, 
long reference);
firstWarning
A code that indicates the first warning that occurred since the last time your warning-handling function was called.
lastWarning
A code that indicates the most recent warning that occurred.
reference
A long integer for your application's own use.
DESCRIPTION
Your TQ3WarningMethod function is called whenever a QuickDraw 3D routine generates a warning during its execution that QuickDraw 3D cannot handle internally. Your warning-handling function should handle the warning conditions indicated by the firstWarning and lastWarning parameters. Your function must not call any QuickDraw 3D routines. The reference parameter contains the long integer that you passed to Q3Warning_Register when you registered your warning handler. You can, for example, use that long integer to point to any data required by your warning handler.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996